/*
 * Application.h
 *
 *  Created on: Dec 12, 2010
 *      Author: theiss
 */

#ifndef APPLICATION_H_
#define APPLICATION_H_

#include <SDL/SDL.h>
#include "Surface.h"
#include "Event.h"

class Application : public Event {

	private:
		bool Running;
		SDL_Surface* Surf_Display;
		SDL_Surface* Surf_Test;
		int PaddleLeft[2];
		int PaddleRight[2];
	public:
		Application(int height, int width);
		virtual ~Application();
		int OnExecute();
	public:
		bool OnInit();
		void OnEvent(SDL_Event * Event);
		void OnExit();
		void OnLoop();
		void OnCleanup();
		void OnRender();
};

#endif /* APPLICATION_H_ */
